<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<link rel="shortcut icon" href="images/favicon.ico" />
<title>网站导航（完善中）</title>
<link rel="stylesheet"
	href="<%=basePath%>script/jquery-ui-1.10.4/themes/base/jquery.ui.all.css">
<script src="<%=basePath%>script/jquery-ui-1.10.4/jquery-1.10.2.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.core.js"></script>
<script
	src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.widget.js"></script>
<script
	src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.button.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.position.js"></script>
<script src="<%=basePath%>script/jquery-ui-1.10.4/ui/jquery.ui.tooltip.js"></script>
<script src="<%=basePath%>script/script.js"></script>
<script>
	getRootPath();
	$(function() {
		var pre = "jsp/main.jsp?menu=";
		//循环初始化每个a标签的href属性值
		$("div a").each(function(){
			$(this).attr("href",pre+$(this).attr("id"));
			$(this).button();
 		});
		//设置每个链接的提示内容
		$("#hr_menu").tooltip({ content: "个人事务|员工档案|人事合同|<br/>员工信息|绩效考核|薪资管理|<br/>五险一金",track: true});
		$("#accounting_menu").tooltip({ content: "个人事务|财务管理|销售管理|<br/>薪资管理|合同订单|五险一金",track: true});
		$("#customer_menu").tooltip({ content: "个人事务|客户管理",track: true});
		$("#customer_mgr_menu").tooltip({ content: "个人事务|客户管理|销售管理|<br/>员工信息|绩效考核",track: true});
		$("#sales_menu").tooltip({ content: "个人事务|产品管理|客户管理|<br/>销售管理|合同订单",track: true});
		$("#sales_mgr_menu").tooltip({ content: "个人事务|客户管理|员工信息|<br/>绩效考核|考勤排班|销售管理|<br/>合同订单",track: true});
		$("#sys_mgr_menu").tooltip({ content: "用户管理|权限管理",track: true});
		$("#menu_tree").tooltip({ content: "树状显示所有权限菜单(未完成)",track: true});
		
		$("#menu_tree").button();
	});
</script>
<link rel="stylesheet" href="<%=basePath%>script/jquery-ui-1.10.4/demos/demos.css">
<style type="text/css">
a{
	margin: 5px;
}
</style>
</head>
<body>
<body>
	权限菜单：
	<div style="width:200px;border: 1px dotted black;">
		<a id="hr_menu" title="" >HR管理员</a>
		<a id="accounting_menu" title="" >财务主管</a> <br /> 
		<a id="customer_menu" title="" >客服人员</a> 
		<a id="customer_mgr_menu" title="" >客户经理</a> <br /> 
		<a id="sales_menu" title="" >销售员</a> 
		<a id="sales_mgr_menu" title="" >销售主管</a> <br /> 
		<a id="sys_mgr_menu" title="" >系统管理员</a>
	</div>
	<br />
	<a id="menu_tree" href="jsp/menu/menu_tree.jsp" title="" >所有菜单</a>
</body>
</html>
